<!-- 下级菜单 -->
<template>
  <div class="whole">
    <el-container>
      <el-aside width="200px">
        <CommonAside />
      </el-aside>
      <el-container>
        <el-header>
          <ComponentsHeader />
        </el-header>
        <el-main>
          <div class="btu">
            <el-button type="primary">导出</el-button>
          </div>
          <div class="main">
            <el-table
              :data="tableData"
              height="560px"
              style="width: 100%">
              <el-table-column
                prop="date"
                label="日期"
                width="400">
              </el-table-column>
              <el-table-column
                prop="name"
                label="姓名"
                width="400">
              </el-table-column>
              <el-table-column
                prop="address"
                label="地址">
              </el-table-column>
            </el-table>
          </div>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import CommonAside from "@/components/CommonAside.vue";
import ComponentsHeader from "@/components/ComponentsHeader";

export default {
  data() {
    return {
      tableData: [
        {
          date: "2t5t5",
          name: "王5t5t虎",
          address: "h6g56h6h5g66",
        },
        {
          date: "2t5t5",
          name: "王5t5t虎",
          address: "h6g56h6h5g66",
        },
        {
          date: "2t5t5",
          name: "王5t5t虎",
          address: "h6g56h6h5g66",
        },
        {
          date: "2t5t5",
          name: "王5t5t虎",
          address: "h6g56h6h5g66",
        },
        {
          date: "2t5t5",
          name: "王5t5t虎",
          address: "h6g56h6h5g66",
        },
        {
          date: "2t5t5",
          name: "王5t5t虎",
          address: "h6g56h6h5g66",
        },
        {
          date: "2t5t5",
          name: "王5t5t虎",
          address: "h6g56h6h5g66",
        },
        {
          date: "2t5t5",
          name: "王5t5t虎",
          address: "h6g56h6h5g66",
        },
        {
          date: "2t5t5",
          name: "王5t5t虎",
          address: "h6g56h6h5g66",
        },
        {
          date: "2t5t5",
          name: "王5t5t虎",
          address: "h6g56h6h5g66",
        },
        {
          date: "2t5t5",
          name: "王5t5t虎",
          address: "h6g56h6h5g66",
        },
        {
          date: "2t5t5",
          name: "王5t5t虎",
          address: "h6g56h6h5g66",
        },
        {
          date: "2t5t5",
          name: "王5t5t虎",
          address: "h6g56h6h5g66",
        },
        {
          date: "2t5t5",
          name: "王5t5t虎",
          address: "h6g56h6h5g66",
        },
      ],
    };
  },
  components: {
    CommonAside,
    ComponentsHeader,
  },
};
</script>

<style>
.whole {
  background-color: #edf7ff;
}
.el-header {
  padding: 0;
}
.btu {
  float: right;
  margin-top: 15px;
  margin-bottom: 30px;
}
.main {
  margin-top: 40px;
}
</style>
